
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common.jsp"%>
<html>
<head>
    <title>接口测试</title>
</head>
<style>
    table tr{
        text-align: center;
    }
    #div1{
        width: 200px;
        height: 100px;
        border: 1px solid black;
        margin: 30px auto;
        text-align: center;
        display: none;
    }
    span{
        width: 40px;
        height: 25px;
        border: solid 1px black;
        margin: 20px;
    }
    span a{
        text-decoration: none;
    }
</style>
<body>

<table border="1px" cellpadding="0" cellspacing="0">
    <c:forEach items="${testCaseList}" var="goods">
        <tr>
            <td width="200">${testCase.getId}</td>
            <td width="200"><a href="${path}/TestCaseServlet?m=showOneTestCase&getId=${test}">${testCase.getTitle}</a></td>
            <td width="200">${testCase.getTitle}</td>
            <td width="200">${testCase.getMessage}</td>
            <td width="200">
                <a href="${path}/GoodsServlet?m=showNowGoods&getPid=${goods.getPid}">修改</a>
                <a href="${path}/GoodsServlet?m=delGoods&getPid=${goods.getPid} ">删除</a>
<%--                onclick="show()--%>
            </td>
        </tr>
    </c:forEach>
</table>
<a href="${path}/add.jsp">添加用例</a>
<div id="div1" >
    <p>确定删除吗？</p>
    <span>
        <a href="${path}/GoodsServlet?m=delGoods&getPid=${testCase.getId}">确定</a>
    </span>
    <span>
        <a href="${path}/showallgoods.jsp">删除</a>
    </span>
</div>

<script>
    function show() {
        var div1 =document.getElementById("div1");
        div1.style.display="block";
    }
</script>
</body>
</html>

